package com.ctgu.fastleader.dao;

import com.ctgu.fastleader.vo.MoneyOfMonth;
import com.ctgu.fastleader.vo.OutputOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface OutputOrderMapper {
    int deleteByPrimaryKey(Integer orderid);

    int insert(OutputOrder record);

    int insertSelective(OutputOrder record);

    OutputOrder selectByPrimaryKey(Integer orderid);

    int updateByPrimaryKeySelective(OutputOrder record);

    int updateByPrimaryKey(OutputOrder record);

    List<OutputOrder> findAllOutputOrder();

    List<OutputOrder> findAllOutputOrderNotOutput();

    List<OutputOrder> searchOutputOrderByKeyWord(@Param("orderid") Integer orderid, @Param("goodsid") Integer goodsid, @Param("customerphone") String customerphone, @Param("createtime") Date createtime);

    int selectOutputOrderstate();

    int selectOutputOrderstateshou();

    List<Map<Integer,Integer>> selectSaleOrder();

//    所有已出库待发货
    List<OutputOrder> findAllOutputState1();

    int selectOutputOrderstate2();

    List<MoneyOfMonth> moneyEveryMonth();
}